package com.demo.spring.jms;

import org.springframework.messaging.handler.annotation.Header;
import org.springframework.stereotype.Component;

@Component
public class JmsMessageListener {
	
//	@JmsListener(destination="myDestination")
//	@SendTo("RecvToSend")
	public String processMessage(String text,@Header("type") String type){
		System.out.println("Receive:"+text);
		return "ACK from handleMessage";
	}
}
